//
//  Vector.h
//  Coffee
//
//  Created by sabhanayagam b on 5/2/11.
//  Copyright 2011 Cognizant. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface Vector : NSObject {
	
	//Vector components <vx , vy>
	float vx;
	float vy;
	//Right Hand Normal
	float rx;
	float ry;
	//Left hand Normal
	float lx;
	float ly;
	//Unit Vector
	float dx;
	float dy;
	//Point p0 , p1
	CGPoint p0;
	CGPoint p1;
	//Length of the Vector
	float length;
	
}
@property float vx,vy,rx,ry,lx,ly,dx,dy,length;
@property CGPoint p0,p1;

-(void) implementation;

-(id) initwithComponentsvx:(float) xcomponent vy:(float) ycomponent;
-(id) initwithPointA:(CGPoint) point0 PointB:(CGPoint)point1;

+(float) dotProductVectorA:(Vector*)vec1 VectorB:(Vector*)vec2;
+(float) dotProductForIntersectionVectorA:(Vector*)vec1 VectorB:(Vector*)vec2;

+(Vector*) projectionVectorA:(Vector*)vec1 VectorB:(Vector*)vec2;

+(BOOL) isParallelVectorA:(Vector*)vec1 VectorB:(Vector*)vec2;
@end
